import { $store, observer } from '@store';

export default observer((): React.ReactElement => {
  return (
    <div className="home">
      <h1>Welcome To YjrCli</h1>
      <h2>Build On</h2>
      <h4>react + ts + vite + scss</h4>
      <h2>Integrated</h2>
      <h4>mobx + yjr-utils + routerV6</h4>
      <h2>LintFormat</h2>
      <h4>prettier + eslint + stylelint</h4>
      <button
        onClick={() => {
          $store.count += 1;
        }}
      >
        &#x1F44D; {$store.count}
      </button>
      <p>Env : {import.meta.env.yjr_environment}</p>
    </div>
  );
});
